package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购原始数据对象 rpt_purchase
 * 
 * @author ruoyi
 * @date 2025-06-18
 */
public class RptPurchase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /**  */
    @Excel(name = "")
    private Long supplierId;

    /**  */
    @Excel(name = "")
    private String supplierName;

    /**  */
    @Excel(name = "")
    private BigDecimal purchaseAmount;

    /**  */
    @Excel(name = "")
    private Long quantity;

    /** 1准时 2延迟 */
    @Excel(name = "1准时 2延迟")
    private Long deliveryStatus;

    /** 1合格 2不合格 */
    @Excel(name = "1合格 2不合格")
    private Long qualityStatus;

    /**  */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }

    public void setSupplierName(String supplierName) 
    {
        this.supplierName = supplierName;
    }

    public String getSupplierName() 
    {
        return supplierName;
    }

    public void setPurchaseAmount(BigDecimal purchaseAmount) 
    {
        this.purchaseAmount = purchaseAmount;
    }

    public BigDecimal getPurchaseAmount() 
    {
        return purchaseAmount;
    }

    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }

    public void setDeliveryStatus(Long deliveryStatus) 
    {
        this.deliveryStatus = deliveryStatus;
    }

    public Long getDeliveryStatus() 
    {
        return deliveryStatus;
    }

    public void setQualityStatus(Long qualityStatus) 
    {
        this.qualityStatus = qualityStatus;
    }

    public Long getQualityStatus() 
    {
        return qualityStatus;
    }

    public void setPurchaseDate(Date purchaseDate) 
    {
        this.purchaseDate = purchaseDate;
    }

    public Date getPurchaseDate() 
    {
        return purchaseDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("supplierId", getSupplierId())
            .append("supplierName", getSupplierName())
            .append("purchaseAmount", getPurchaseAmount())
            .append("quantity", getQuantity())
            .append("deliveryStatus", getDeliveryStatus())
            .append("qualityStatus", getQualityStatus())
            .append("purchaseDate", getPurchaseDate())
            .toString();
    }
}
